package de.au.fi.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import de.au.fi.calc.CalcHelper;
import de.au.fi.domain.Stock;
import de.au.fi.domain.Stock.AnalystenMeinung;
import de.au.fi.domain.Stock.CapType;
import de.au.fi.domain.Stock.DreimonatsReversal;
import de.au.fi.manager.StockManager;


@Component
@Scope("session")
public class SearchResultController 
{
	List<Stock> stocks;
	
	@Autowired
	StockManager stockManager;

	public List<Stock> getStocks() {
		return stocks;
	}

	public void setStocks(List<Stock> stocks) {
		this.stocks = stocks;
	}
	
	public List<Stock> getAllStocks()
	{
		this.stocks = stockManager.getAll();
		return stocks;
	}
	
}
